package com.hdaccp.shuiguoD.dao;

import com.hdaccp.shuiguoD.entity.Shangpin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShangpinDao {
    public List<Shangpin> queryAll() ;
    public long getTotalCount(@Param("sname") String sname) ;
    public List<Shangpin> query(@Param("sname") String username,@Param("offset") int offset,@Param("limit") int limit);
    public Shangpin geisid(int sid);
    public int add(Shangpin shangpin);

}
